package com.yummy.convention.http;

public enum DefaultResponseCode implements ResponseCode {
	SUCCESS("200",""),
	FAILURE("500","服务器内部错误"),
	UNLOGINED("401","未登录"),
	UNAUTHORIZED("403","未授权");

	private String code;
	private String msg;


	private DefaultResponseCode(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public String getCode() {
		return this.code;
	}

	@Override
	public String getMsg() {
		return this.msg;
	}

}
